<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增服务地址')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-operator-add">
        <div class="form-group">
            <label class="col-sm-3 control-label" th:class="hidden">Id：</label>
            <div class="col-sm-8" th:class="hidden">
                <input id="visitAddressId" name="visitAddressId" class="form-control" type="text" disabled="disabled">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">服务地址：</label>
            <div class="col-sm-8">
                <input id="visitAddress" name="visitAddress" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">描述：</label>
            <div class="col-sm-8">
                <input id="description" name="description" type="text">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "serverVisitAddress";
    $("#form-operator-add").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandlerOri() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/update", $('#form-operator-add').serialize());
        }
    }

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-operator-add').serialize());
        }
    }
</script>
</body>
</html>
